import request from "@/utils/request";
import { data } from "jquery";
//分享歌曲
export function toShareSong(data) {
  return request({
    url: "/sharedSong/add",
    method: "post",
    data: data
  });
}

//分享歌单
export function toShareSongList(data) {
  return request({
    url: "/sharedSongList/add",
    method: "post",
    data: data
  });
}

//查询分享
export function queryShare(query){
  return request({
    url: "/query/shared",
    method: "get",
    params: query
  });
}
//增加点击数
export function addClickCount(data){
  return request({
    url:"/sharedComment/addClickCount",
    method:"put",
    data:data
  });
}

//减少点击数
export function delClickCount(data){
  return request({
    url:"/sharedComment/delClickCount",
    method:"put",
    data:data
  });
}

//获取分享评论
export function getComment(query){
  return request({
    url:"/sharedComment/getComment",
    method:'get',
    params:query,
  });
}
//获取分享热评
export function getHotComment(query){
  return request({
    url:"/sharedComment/getHotComments",
    method:'get',
    params:query,
  });
}
//添加评论
export function addComment(data){
  return request({
    url:"/sharedComment/add",
    method:"post",
    data:data,
  });
}